css node: Warn more
authorMatthias Clasen <mclasen@redhat.com>
Tue, 8 Dec 2015 21:51:21 +0000 (16:51 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 15 Dec 2015 13:41:16 +0000 (08:41 -0500)
commitf2dd4350b2b5250e66b70ef4067e3920551e39cf
tree66599b9e96ea0cdd7a3c5c607e6ab72c5e9f90c8
parente2bc77b9af76769aba9409555025b6c6beadef26
css node: Warn more

gtk_css_node_insert_before/after can easily create cycles
which later lead to stack overflows. Even if we're not
catching all cycles here, at least we can detect obviously
invalid arguments, such as inserting a node next to itself.
gtk/gtkcssnode.c